package com.caishi.lkx.exam.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.caishi.lkx.exam.model.WeekRankModel;
import com.caishi.lkx.exam.vo.WeekRankVo;
import com.zzw.common.entity.BSService;


/**
 * 每周排行相关接口
 */
public interface IWeekRankService extends BSService<WeekRankModel, Long> {

    /**
     * 获取每周排行数据
     * @param page
     * @param categoryId
     * @return
     */
    IPage<WeekRankVo> getWeekRank(Page<WeekRankModel> page, Long categoryId);

    /**
     * 添加用户每周排行
     * @param userId
     * @param categoryId
     * @param doCount
     * @param errorCount
     */
    void addData(String userId, Long categoryId, int doCount, int errorCount);

}
